﻿
namespace SocketTest
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var server = new Server();
            server.Start();

            //var client = new Client();
            //client.Start();
            int count = 0;
            while (true)
            {
                Thread.Sleep(1000);
                if (count != server.clients.Count)
                {
                    count = server.clients.Count;
                    Console.WriteLine("客户端已连接." + server.clients.Count);
                }
            }
        }
    }
}
